sorce = eval(input("请输入成绩："))
if 90 < sorce <= 100:
    print("A")
elif 80 < sorce <=90:
    print("B")
elif 60 <sorce <= 70:
    print("C")
elif 70 <sorce <= 60:
    print("D")
else:
    print("E")